#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

int main(void);

int
main()
{
   printf("%s\n", getenv("HOME"));
   char buf[BUFSIZ];
   memset(buf, '\0', BUFSIZ);

   if (gethostname(buf, BUFSIZ) == 0) 
      printf("%s\n", buf);

   mode_t mask = umask(0);
   printf("%d\n", mask);
   printf("%#3.3o\n", mask);

   return 0;
}
   
